public class Train05 {
    public static void main(String[] args) {
        char[] s = {'序','顺','符','字','组','数','倒','颠'};

        // 使用循环将数组中字符的顺序完成反转
        int start = 0;
        int end = s.length - 1;
        char temp;

        while (start < end) {
            temp = s[start];
            s[start] = s[end];
            s[end] = temp;
            start++;
            end--;
        }

        // 输出反转后的字符数组
        for (char c : s) {
            System.out.print(c);
        }
    }
}
